﻿using StrokeCenterSystem.ThreeCenterManage;
using StrokeCenterSystem.Utils;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace StrokeCenterSystem.Areas.StrokeCenter.Controllers
{
    public class JmrsxgnjrzlStatisticsController : BaseController
    {
        // GET: /StrokeCenter/JmrsxgnjrzlStatistics/
        public ActionResult Index()
        {
            return View();
        }

        #region 溶栓取栓统计

        /// <summary>
        /// 溶栓取栓统计
        /// </summary>
        /// <returns></returns>
        public ActionResult RongShuanQuShuan()
        {
            return View();
        }

        /// <summary>
        /// 查询溶栓取栓列表
        /// </summary>
        /// <returns></returns>
        public ActionResult SearchRongShuanQuShuan()
        {
            string startTime = WebUtils.GetString("startTime");
            string endTime = WebUtils.GetString("endTime");
            int dateType = WebUtils.GetInt("dateType");
            ThreeCenterManageSoapClient service = new ThreeCenterManageSoapClient();
            ResultHelperOfString result = service.GetAisCountInfo(startTime, endTime, dateType);
            string jsonDate = "[]";
            if (result.S)
            {
                jsonDate = result.D;
            }
            return Content("{\"Rows\":" + jsonDate + "}");
        }

        #endregion
    }
}
